﻿using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Text;

namespace MQ.Core.Db.SqlServer
{
    public static class DapperContextExtensions
    {
        public static ServiceCollection AddDapperContext(this ServiceCollection services,Action<string> options, ServiceLifetime contextLifetime = ServiceLifetime.Scoped, ServiceLifetime optionsLifetime = ServiceLifetime.Scoped)
        {
            services.Configure(options);
            return services;
        }
    }
}
